<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:igDP="http://infragistics.com/DataPresenter"
	xmlns:igWindows="http://infragistics.com/Windows"
	xmlns:vok="clr-namespace:ViewOn.Kernel">

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="ToggleButton.Star.xaml" />
	</ResourceDictionary.MergedDictionaries>

	<Style x:Key="RatingImage" TargetType="{x:Type igDP:CellValuePresenter}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
					<StackPanel Orientation="Horizontal">
						<ToggleButton IsEnabled="False" IsChecked="{Binding Path=Record.DataItem.IsRating1, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
						<ToggleButton IsEnabled="False" IsChecked="{Binding Path=Record.DataItem.IsRating2, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
						<ToggleButton IsEnabled="False" IsChecked="{Binding Path=Record.DataItem.IsRating3, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
						<ToggleButton IsEnabled="False" IsChecked="{Binding Path=Record.DataItem.IsRating4, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
						<ToggleButton IsEnabled="False" IsChecked="{Binding Path=Record.DataItem.IsRating5, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Width="14" Height="20" Style="{StaticResource ToggleButton.Star}"/>
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    
</ResourceDictionary>